#include "junix.h"

struct A
{
	long mtype;
	char buf[100];
};

int main(int argc, char **argv)
{
	struct A a={6,"hello"};
	printf("A.mtype:%.lu\nA.buf:%s\n",
			a.mtype, a.buf);

	struct A b={6,{'h','e','l','l','o','\0'}};
	printf("A.mtype:%.lu\nA.buf:%s\n",
			b.mtype, b.buf);

	long l=*(long*)&a;
	char *s= ((char*)&a +sizeof(long));
	printf("A.mtype:%.lu\nA.buf:%s\n",l, s);
    exit(0);
}

